const Screen = resolve => require(['common/src/views/screen/screen'], resolve);
const SimpleScreenPage = resolve =>
    require(['common/src/views/screen/screenPageSimple'], resolve);
const NormalScreenPage = resolve =>
    require(['common/src/views/screen/screenPage'], resolve);
const layout = resolve => require(['common/src/views/layout'], resolve);

const ScreenRouter = [
    {
        path: '/normalScreen',
        name: 'NormalScreen',
        component: NormalScreenPage,
        meta: {
            label: '大屏统计'
        }
    },
    {
        path: '/simpleScreen',
        name: 'SimpleScreen',
        component: SimpleScreenPage,
        meta: {
            label: '大屏统计'
        }
    },
    {
        path: '/screenPage',
        name: 'screenPage',
        component: layout,
        meta: {
            label: '报到大屏'
        },
        children: [
            {
                path: '/screen',
                name: 'screen',
                component: Screen,
                meta: {
                    label: '报到大屏'
                }
            }
        ]
    }
];

export default ScreenRouter;
